/* 打勾动画 */

input[type=checkbox] {
    display: none;
}


/* 底部全选的勾动画 */

@-moz-keyframes dothabottomcheck {
    /* 定义第一条线的长度 */
    0% {
        height: 0;
    }
    100% {
        height: 20px;
    }
}

@-webkit-keyframes dothabottomcheck {
    0% {
        height: 0;
    }
    100% {
        height: 20px;
    }
}

@keyframes dothabottomcheck {
    0% {
        height: 0;
    }
    100% {
        height: 20px;
    }
}

@keyframes dothatopcheck {
    /* 定义第二条线的长度 */
    0% {
        height: 0;
    }
    50% {
        height: 0;
    }
    100% {
        height: 35px;
    }
}

@-webkit-keyframes dothatopcheck {
    0% {
        height: 0;
    }
    50% {
        height: 0;
    }
    100% {
        height: 35px;
    }
}

@-moz-keyframes dothatopcheck {
    0% {
        height: 0;
    }
    50% {
        height: 0;
    }
    100% {
        height: 35px;
    }
}


/* 底部全选的勾动画 */


/* 购物车商品的勾动画 */

@-moz-keyframes dothabottomcheck1 {
    /* 定义第一条线的长度 */
    0% {
        height: 0;
    }
    100% {
        height: 15px;
    }
}

@-webkit-keyframes dothabottomcheck1 {
    0% {
        height: 0;
    }
    100% {
        height: 15px;
    }
}

@keyframes dothabottomcheck1 {
    0% {
        height: 0;
    }
    100% {
        height: 15px;
    }
}

@keyframes dothatopcheck1 {
    /* 定义第二条线的长度 */
    0% {
        height: 0;
    }
    50% {
        height: 0;
    }
    100% {
        height: 25px;
    }
}

@-webkit-keyframes dothatopcheck1 {
    0% {
        height: 0;
    }
    50% {
        height: 0;
    }
    100% {
        height: 25px;
    }
}

@-moz-keyframes dothatopcheck1 {
    0% {
        height: 0;
    }
    50% {
        height: 0;
    }
    100% {
        height: 25px;
    }
}


/* 购物车商品的勾动画 */

.check-box {
    height: 30px;
    width: 30px;
    background-color: transparent;
    border: 1px solid #3C7D75;
    border-radius: 5px;
    position: relative;
    display: inline-block;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -moz-transition: border-color ease 0.2s;
    -o-transition: border-color ease 0.2s;
    -webkit-transition: border-color ease 0.2s;
    transition: border-color ease 0.2s;
    cursor: pointer;
}

.check-box::before,
.check-box::after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    height: 0;
    width: 5px;
    background-color: #3C7D75;
    display: inline-block;
    -moz-transform-origin: left top;
    -ms-transform-origin: left top;
    -o-transform-origin: left top;
    -webkit-transform-origin: left top;
    transform-origin: left top;
    border-radius: 5px;
    content: ' ';
    -webkit-transition: opacity ease .5;
    -moz-transition: opacity ease .5;
    transition: opacity ease .5;
}

.check-box::before {
    /* 第二条线位置 */
    top: 22px;
    left: 20px;
    -moz-transform: rotate(-135deg);
    -ms-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.check-box::after {
    /* 第一条线位置 */
    top: 8px;
    left: 5px;
    -moz-transform: rotate(-36deg);
    -ms-transform: rotate(-36deg);
    -o-transform: rotate(-36deg);
    -webkit-transform: rotate(-36deg);
    transform: rotate(-36deg);
}

.check-box-goods::after,
.check-box-goods::before {
    width: 2px;
}

.check-box-goods::before {
    top: 20px;
    left: 15px;
}

input[type=checkbox]:checked+.check-box,
.check-box.checked {
    border-color: #3C7D75;
}

input[type=checkbox]:checked+.check-box::after,
.check-box.checked::after {
    -moz-animation: dothabottomcheck 0.2s ease 0s forwards;
    -o-animation: dothabottomcheck 0.2s ease 0s forwards;
    -webkit-animation: dothabottomcheck 0.2s ease 0s forwards;
    animation: dothabottomcheck 0.2s ease 0s forwards;
}

input[type=checkbox]:checked+.check-box::before,
.check-box.checked::before {
    -moz-animation: dothatopcheck 0.4s ease 0s forwards;
    -o-animation: dothatopcheck 0.4s ease 0s forwards;
    -webkit-animation: dothatopcheck 0.4s ease 0s forwards;
    animation: dothatopcheck 0.4s ease 0s forwards;
}

input[type=checkbox]:checked+.check-box-goods::after,
.check-box-goods.checked::after {
    -moz-animation: dothabottomcheck1 0.2s ease 0s forwards;
    -o-animation: dothabottomcheck1 0.2s ease 0s forwards;
    -webkit-animation: dothabottomcheck1 0.2s ease 0s forwards;
    animation: dothabottomcheck1 0.2s ease 0s forwards;
}

input[type=checkbox]:checked+.check-box-goods::before,
.check-box-goods.checked::before {
    -moz-animation: dothatopcheck1 0.4s ease 0s forwards;
    -o-animation: dothatopcheck1 0.4s ease 0s forwards;
    -webkit-animation: dothatopcheck1 0.4s ease 0s forwards;
    animation: dothatopcheck1 0.4s ease 0s forwards;
}

.car-fixed {
    position: fixed;
    top: 85px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 30px;
}

.car-all-wrap {
    position: fixed;
    top: 150px;
    left: 0;
    height: calc(100% - 230px);
    width: 100%;
    box-sizing: border-box;
    padding: 0 30px;
    overflow: auto;
}

.car-bottom-controll {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 80px;
    padding-left: 30px;
    box-sizing: border-box;
    border-top: 1px solid #3C7D75;
}

.car-flex-wrap {
    display: flex;
    align-items: center;
}

.car-title>div:nth-of-type(1),
.car-flex-wrap>div:nth-of-type(2),
.car-flex-wrap>div:nth-of-type(3),
.car-flex-wrap>div:nth-of-type(4) {
    flex: 0 0 110px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.car-flex-wrap>div:nth-of-type(1) {
    flex: 1 1 0;
}

.car-title>div {
    font-size: 25px;
    font-weight: 600;
}


/* 购物车列表 */

.car-list {
    padding: 18px 0;
    border-top: 1px solid #eee;
}

.car-list span {
    font-size: 22px;
}

.car-list input {
    width: 100%;
    font-size: 22px;
    text-align: center;
}

.goods-img-name {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.goods-img-name>label {
    flex: 0 0 30px;
    margin-right: 10px;
}

.goods-img-name>img {
    flex: 0 0 80px;
    margin-right: 10px;
}

.goods-img-name>span {
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.car-count-controll {
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border: 1px solid #3C7D75;
}


/* 空购物车 */

.car-is-null {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.car-is-null>p {
    font-size: 22px;
    padding-top: 20px;
    padding-bottom: 40px;
    letter-spacing: 2px;
}

.car-is-null>button {
    width: 200px;
    padding: 12px 0;
    margin-bottom: 85px;
    border: 1px solid #3C7D75;
    color: #3C7D75;
    background: transparent;
    font-size: 22px;
}


/* 底部控制样式 */

.bottom-left {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
}

.bottom-left>span {
    font-size: 20px;
    text-indent: 20px;
    letter-spacing: 2px;
}

.bottom-left>input {
    border: 1px solid #3C7D75;
}

.bottom-right {
    flex: 1 1 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.bottom-right>span {
    font-size: 22px;
}

.bottom-right>button {
    width: 150px;
    height: 100%;
    margin-left: 20px;
    background: #3C7D75;
    font-size: 24px;
    color: white;
    border: none;
    outline: none;
}


/* 删除购物车 */

.del-goods-wrap {
    position: fixed;
    bottom: 130px;
    right: 50px;
    z-index: 100;
    width: 100px;
    height: 100px;
    font-size: 25px;
    text-align: center;
    line-height: 100px;
    color: white;
    text-shadow: 0 0 10px #49f5e5;
    border-radius: 50%;
    background: #3C7D75;
    box-shadow: 0 0 20px #49f5e5;
}